<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="com.situ.web.entity.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		pageContext.setAttribute("name", "zhangsan");
		request.setAttribute("name", "list");
		
		Student student = new Student(1,"王五",22,"男");
		session.setAttribute("student", student);
		
		List<Student> list = new ArrayList<Student>();
		Student student1 = new Student(1,"赵六1",22,"男");
		Student student2 = new Student(1,"赵六2",22,"男");
		Student student3 = new Student(1,"赵六3",22,"男");
		list.add(student1);
		list.add(student2);
		list.add(student3);
		application.setAttribute("list", list);
	%>
	
	${pageScope.name}<br>
	${requestScope.name }<br>
	${name }<br>
	<hr/>
	${sessionScope.student.name }<br>
	${student.age }<br>
	<hr/>
	${applicationScope.list[1].name }<br>
	${list[1].age }<br>	
</body>
</html>